package com.sm.scorpio.ui.bean.http;

import android.os.Parcel;
import android.os.Parcelable;

import com.sm.scorpio.ui.bean.model.BaseBean;
import com.sm.scorpio.ui.bean.model.UserBean;

import java.io.Serializable;

/**
 * created by zhud on 2019/7/11
 */
public class UserHttpBean extends BaseBean implements Parcelable {
    public UserBean data;

    public UserHttpBean() {
    }

    protected UserHttpBean(Parcel in) {
        super(in);
        data = in.readParcelable(UserBean.class.getClassLoader());
    }

    public static final Creator<UserHttpBean> CREATOR = new Creator<UserHttpBean>() {
        @Override
        public UserHttpBean createFromParcel(Parcel in) {
            return new UserHttpBean(in);
        }

        @Override
        public UserHttpBean[] newArray(int size) {
            return new UserHttpBean[size];
        }
    };

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        super.writeToParcel(dest, flags);
        dest.writeParcelable(data, flags);
    }
}
